<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
<head>
    <title>电影详情页</title>
    <link rel="stylesheet" href="assets/css/bootstrap.min.css"/>
    <link rel="stylesheet" href="assets/css/bootstrap-maizi.css"/>
</head>
<body>
<!--导航-->
<jsp:include page="header.jsp"></jsp:include>
<!--导航-->

<div class="container">
    <div class="row">
        <div class="col-md-2">
            <div class="list-group">
                <a href="${pageContext.request.contextPath }/adminMovie" class="list-group-item">影片列表</a>
                <a href="${pageContext.request.contextPath }/adminMovie?method=doSave" class="list-group-item active">新增影片</a>
                <a href="${pageContext.request.contextPath }/adminMovie?method=doSearch"
                   class="list-group-item">查询影片</a>
            </div>
        </div>
        <div class="col-md-10">
            <div class="page-header">
                <h1>影片管理</h1>
            </div>
            <table class="table table-hover">
                <thead>
                <tr>
                    <th>影片属性</th>
                    <th>影片信息</th>
                </tr>
                </thead>
                <tbody>
                <tr class="hidden">
                    <td>影片ID</td>
                    <td>${movie.id}</td>
                </tr>
                <tr>
                    <td>影片名称</td>
                    <td>${movie.name}</td>
                </tr>
                <tr>
                    <td>影片评分</td>
                    <td>${movie.score}</td>
                </tr>
                <tr>
                    <td>影片简介</td>
                    <td>${movie.content}</td>
                </tr>
                <tr>
                    <td>影片类型</td>
                    <td>${movie.type}</td>
                </tr>
                <tr>
                    <td>影片导演</td>
                    <td>${movie.director}</td>
                </tr>

                <tr>
                    <td>影片演员</td>
                    <td>${movie.actor}</td>
                </tr>
                <tr>
                    <td>制片国家/地区</td>
                    <td>${movie.production_area}</td>
                </tr>
                <tr>
                    <td>影片语言</td>
                    <td>${movie.language}</td>
                </tr>
                <tr>
                    <td>影片片长</td>
                    <td>${movie.length}</td>
                </tr>
                <tr>
                    <td>上映时间</td>
                    <td>${movie.release_time}</td>
                </tr>
                <tr>
                    <td>图片</td>
                    <td><img class="img-responsive" src="${pageContext.request.contextPath }/upload/${movie.picture}"
                             alt=""></img></td>
                </tr>

                <tr>
                    <td>
                        <div style="margin:0 auto;width:200px;">
                            <button type="button" class="btn btn-success"
                                    onclick="location='${pageContext.request.contextPath }/adminMovie?method=doModify&id=${movie.id}'">
                                修改
                            </button>
                        </div>
                    </td>
                    <td>
                        <button type="button" class="btn btn-danger"
                                onclick="location='${pageContext.request.contextPath }/adminMovie'">取消
                        </button>
                    </td>
                </tr>
                </tbody>
            </table>

        </div>
    </div>
</div>

<!--footer-->
<jsp:include page="footer.jsp"></jsp:include>
<!--footer-->

<script src="assets/javascripts/jquery.min.js"></script>
<script src="assets/javascripts/bootstrap.min.js"></script>
<script src="assets/javascripts/Chart.js"></script>
<script src="assets/javascripts/script.js"></script>
</body>
</html>